package com.bite;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-18
 * Time: 19:39
 */
public class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(int y, int m,int d){
        year=y;
        month=m;
        day=d;
    }
    public void printDate(){
        System.out.println(year + "/" +month +"/"+day);
    }

    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();

        d1.setDay(2020,9,15);
        d1.setDay(2020,9,16);
        d1.setDay(2020,9,17);

        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
}
